package com.wust.dao;

import com.wust.entity.Data;
import com.wust.entity.HrStatistics;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface HrStatisticsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(HrStatistics record);

    int insertSelective(HrStatistics record);

    HrStatistics selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HrStatistics record);

    int updateByPrimaryKey(HrStatistics record);

    HrStatistics selectLatestByUserId(Integer userId);

    HrStatistics selectSecondByUserIdAndTime(@Param("userId") Integer userId, @Param("oldTime")Date oldTime);

}